package unit5.part13;

import java.util.Scanner;

public class Person {
    private int birthYear;
    private static int startYear, endYear;

    static {
        startYear = 1946;
        endYear = 1964;
    }

    public Person(int birthYear) {
        this.birthYear = birthYear;
    }

    boolean isBornBoomer() {
        return birthYear > startYear && birthYear < endYear;
    }

    static int during() {
        return endYear - startYear;
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int year = scanner.nextInt();
        Person person = new Person(year);
        System.out.println(person.isBornBoomer());
        System.out.println(Person.during());
    }
}
